tachyons-visibility 1.0.3
Performance based css module.
Stats
280 | 4 | 16 |
---|
bytes | selectors | declarations |
Installation
npm install --save-dev tachyons-visibility
With Git
git clone https://github.com/tachyons-css/tachyons-visibility
Usage
Import the css module
@import "tachyons-visibility";
Then process the CSS using the tachyons-cli
$ npm i -g tachyons-cli
$ tachyons path/to/css-file.css > dist/t.css
Using the CSS
The built CSS is located in the css
directory. It contains an unminified and minified version.
You can either cut and paste that css or link to it directly in your html.
<link rel="stylesheet" href="path/to/module/css/tachyons-visibility">
Development
The source CSS files can be found in the src
directory.
Running $ npm start
will process the source CSS and place the built CSS in the css
directory.
The CSS
.clip { position: fixed !important; _position: absolute !important; clip: rect( 1px 1px 1px 1px ); clip: rect( 1px, 1px, 1px, 1px ); }
@media screen and (min-width: 48em) {
.clip-ns { position: fixed !important; position: absolute !important; clip: rect( 1px 1px 1px 1px ); clip: rect( 1px, 1px, 1px, 1px ); }
}
@media screen and (min-width: 48em) and (max-width: 64em) {
.clip-m { position: fixed !important; position: absolute !important; clip: rect( 1px 1px 1px 1px ); clip: rect( 1px, 1px, 1px, 1px ); }
}
@media screen and (min-width: 64em) {
.clip-l { position: fixed !important; position: absolute !important; clip: rect( 1px 1px 1px 1px ); clip: rect( 1px, 1px, 1px, 1px ); }
}
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Authors
License
MIT